<script>
  document.onmousedown=mousedown_handler
  document.onmouseup=mousedown_handler

  function mousedown_handler()
  {
    var message="Sorry,right clicking is not allowed!"
    if(event.button==2||event.button==3)
    {
      alert(message)
      return false
    }
  }
</script>
